﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class SControls_Image_Thumbnail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
        { 
            //设置属性
            WUC_UpFile1.IsChangeSize = chk_changeSize.Checked;
            int up_w = 0;
            int up_h = 0;
            try
            {
                up_w = Convert.ToInt32(txt_width.Text);
                up_h = Convert.ToInt32(txt_height.Text);
            }
            catch { }

            WUC_UpFile1.UP_Width = (up_w == 0) ? 200 : up_w;
            WUC_UpFile1.UP_Height = (up_h == 0) ? 150 : up_h;
        }
    }
}
